package com.njtoyo.taxi.admin.mongo.entity.primary;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @Author Dell
 * @Date 2018/10/11 16:57
 */
@Document(collection = "coupon")
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class CouponMongo {

    /**
     * 主键
     */
    @Id
    private ObjectId id;

    private Integer couponId;

    private Integer category;

    private Integer scope;

    private Integer platform;

    private Integer discountType;

    private Double discountDigit;

    private Integer limitType;

    private Double limitDigit;

    private Integer customerId;

    private Integer cantonId;

    private Integer customerRegionId;

    private Boolean hadUsed;

    private Integer startedTimestamp;

    private Integer endedTimestamp;

    private Integer grantedTimestamp;
    private Integer count;

    private Date createdAt;

    private Date updatedAt;

}
